package com.qf03;

public class TestDeamon {
    public static void main(String[] args) {
        DeamonThread d1=new DeamonThread();
        d1.setDaemon(true);
        d1.start();

        for (int i = 0; i < 10; i++) {
            System.out.println("主线程:......"+i);
            try {
                Thread.sleep(200);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
